/**
 * 
 */
package game;

import javax.swing.JFrame;
import javax.swing.JTextField;

/**
 * @author pillow
 *
 */
public class GraphicInterface extends JFrame
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	public GraphicInterface(String title)
	{
		setTitle(title);
		setSize(300, 300);
		setDefaultCloseOperation(GraphicInterface.EXIT_ON_CLOSE);
		setVisible(true);
		
		drawSplash();
	}
	
	private void drawSplash()
	{
//		JTextField player_1 = new JTextField();
//		player_1.setHorizontalAlignment(player_1.LEFT);
		JTextField player_2 = new JTextField();
		player_2.setHorizontalAlignment(JTextField.RIGHT);
		
//		getContentPane().add(player_1);
//		getContentPane().add(player_2);
		initGame(); // zeby ostrzezenia nie wypluwal.
	}
	
	private void initGame()
	{
		Engine.getInstance().init(this, getContentPane());
	}

}
